"auto"
if(!requestScreenCapture(false)){
    toast("请求截图失败")
    exit()
}

let imgPath = "/sdcard/Pictures/money.png"
let img = captureScreen()
let imgClip = images.clip(img,95,136,189,150)//284 279 295
images.save(imgClip,imgPath)
img.recycle()

/*
//查找 我 有没有 该兵种
let armMe = images.read("/sdcard/Pictures/xueguai1.png")
let armMeAll = captureScreen()
sleep(1000)
let meIs = findImage(armMeAll,armMe,{
    region:[783,20,1660-783,868-20],
    threshold:0.98
});
if(meIs){
    log(" 我有 这兵种")
}else{
    log(" 我有 wu")
}
*/

/*
let now = new Date()
let hour = now.getHours()
let minute = now.getMinutes()
let second = now.getSeconds()
log(hour+":"+minute+":"+second)
log(98%10)
*/




